home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-11 / colorset.zip / COLORSET.H < prev    next >
Text File  |  1993-01-04  |  3KB  |  101 lines

  1. #include inkey.h
  2. #include achoice.h
  3.  
  4. ******************************************************************************
  5. ******************************************************************************
  6. ****************    YOU MAY ALTER THE #defines BELOW  ************************
  7. ******************************************************************************
  8. ******************************************************************************
  9.  
  10. *
  11. * FORE_COL_MIN is the MIN value for COLUMN position of the FOREGROUND pointer.
  12. * BACK_ROW_MIN is the MIN value for ROW    position of the BACKGROUND pointer.
  13. *
  14.  
  15. #define FORE_COL_MIN  9
  16. #define BACK_ROW_MIN 13
  17.  
  18. *
  19. * These four constants represent the coordinates of the SAMPLE WINDOW.
  20. *
  21.  
  22. #define SAMP_ULR  6
  23. #define SAMP_ULC 41
  24. #define SAMP_LRR 10
  25. #define SAMP_LRC 69
  26.  
  27. *
  28. * These four constants represent the coordinates of the ACHOICE MENU.
  29. *
  30.  
  31. #define MENU_ULR  2
  32. #define MENU_ULC  9
  33. #define MENU_LRR 10
  34. #define MENU_LRC 34
  35.  
  36. *
  37. * This is the title and where it will go...
  38. *
  39.  
  40. #define TITLE     EXPAND("CHANGE COLOR")
  41. #define TITLE_ROW 3
  42. #define TITLE_COL (80 - MENU_LRC - LEN(TITLE)) / 2 + MENU_LRC
  43.  
  44. ******************************************************************************
  45. ******************************************************************************
  46. ****************      LEAVE THE REST THE FUCK ALONE!      ********************
  47. ******************************************************************************
  48. ******************************************************************************
  49.  
  50. *
  51. * FORE_COL_MAX is the MAX value for COLUMN position of the FOREGROUND pointer.
  52. * BACK_ROW_MAX is the MAX value for ROW    position of the BACKGROUND pointer.
  53. *
  54.  
  55. #define FORE_COL_MAX FORE_COL_MIN + 60
  56. #define BACK_ROW_MAX BACK_ROW_MIN + 7
  57.  
  58. *
  59. * FORE_ROW is the value of the ROW    position of the FOREGROUND pointer.
  60. * BACK_COL is the value of the COLUMN position of the BACKGROUND pointer.
  61. *
  62.  
  63. #define FORE_ROW BACK_ROW_MIN - 1
  64. #define BACK_COL FORE_COL_MAX + 4
  65.  
  66. *
  67. * These values are the decimal ASCII values of the characters used as
  68. *  foreground and background arrow pointers.
  69. *
  70.  
  71. #define UP_ARROW    CHR(24)
  72. #define DOWN_ARROW  CHR(25)
  73. #define RIGHT_ARROW CHR(26)
  74. #define LEFT_ARROW  CHR(27)
  75.  
  76. *
  77. * These two macros are used mainly for readability.  They strip off the
  78. *  standard and enhanced portions of the Clipper color string passed.
  79. *
  80.  
  81. #define STANDARD(_c_) SUBSTR(_c_, 1, AT(",", _c_) - 1)
  82. #define ENHANCED(_c_) SUBSTR(_c_,    AT("/", _c_) + 1)
  83.  
  84. *
  85. * The rest are part of my 'standard' header file for all apps...
  86. *
  87.  
  88. #define CENTER(_x, _y) INT((_y - LEN(_x)) / 2)
  89. #define KEYPRESS(_k) KEYBOARD CHR(_k)
  90. #define LSTR(_z) LTRIM(STR(_z, 0))
  91.  
  92. #define BACK(_a_) INT(_a_ / 16)
  93. #define FORE(_a_) _a_ % 16
  94.  
  95. ******************************************************************************
  96. ******************************************************************************
  97. **********************  END OF PREPROCESSOR SCHTUFFF  ************************
  98. ******************************************************************************
  99. ******************************************************************************
  100.  
  101.